﻿using System;
using System.Collections.Generic;

namespace ExplorerPlus.DomainObjects
{
    public class Category
    {
        // data members
        private int intId;
        private string strName;
        private List<CategoryField> lstfields = new List<CategoryField>();

        // properties
        public int CategoryId
        {
            get
            {
                return intId;
            }
            set
            {
                intId = value;
            }
        }

        public string CategoryName
        {
            get
            {
                return strName;
            }
            set
            {
                strName = value;
            }
        }

        public List<CategoryField> CategoryFields
        {
            get
            {
                return lstfields;
            }
        }

        public class CategoryField
        {
            private int intFieldId;
            private string strFieldName;
            private string strFieldType;
            private bool blnIsNavigable;

            public int FieldId
            {
                get
                {
                    return intFieldId;
                }
                set
                {
                    intFieldId = value;
                }
            }

            public string FieldName
            {
                get
                {
                    return strFieldName;
                }
                set
                {
                    strFieldName = value;
                }
            }

            public string FieldType
            {
                get
                {
                    return strFieldType;
                }
                set
                {
                    strFieldType = value;
                }
            }

            public bool IsNavigable
            {
                get
                {
                    return blnIsNavigable;
                }
                set
                {
                    blnIsNavigable = value;
                }
            }

        }
    }
}
